﻿@using FCTC_Web.Models
@model Vehicle
<div class="zhihuan_left_2">
    <div class="zhihuan_left_3">
        @if (Model.Imgs != null && Model.Imgs.Count > 0)
        {
            <a href="@Url.Action("Details", "VehicleBusiness", new { id = Model.ID })">
                <img src="@Url.Action("ShowImage", "Image", new { id = Model.Imgs[0].ID })" width="120" height="84" alt="zhihuan" />
            </a>
        }
        else
        {
            <a href="@Url.Action("Details", "VehicleBusiness", new { id = Model.ID })">
                <img src="/images/moren_car.jpg" />
            </a>
        }
    </div>
    <div class="zhihuan_left_4">
        <b>
            <p>
                <a  href="@Url.Action("Details", "VehicleBusiness", new { id = Model.ID })">@Model.FullName</a></p>
        </b><span>
            <p>
                已行驶：@Model.Miles,颜色：@Model.Color,换挡：@Model.Gears</p>
        </span>
        <p>
            车店：
            @if (Model.Shop != null)
            {
                @Model.Shop.FullName 
                <span>[联系车行]:@Model.Shop.ContactNumber</span>
            }
            else
            {
                <span>暂缺</span>
            }
        </p>
    </div>
    <div class="zhihuan_left_5">
       @Html.DisplayFor(item=>Model.Prize)<span>万</span></div>
    <div class="zhihuan_left_6">
        @Model.Location</div>
    <div class="zhihuan_left_7">
        @Html.DisplayFor(item => Model.EnrollmentDate)</div>
</div>
